import { Layout } from '@fl/utils/routerHelper'

const elevatorBoardRoute: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/pages/retrofit-elevator/board/district-data.vue'),
            meta: {
                title: '数据统计与分析',
                permission: ['看板-各区申请'],
            },
            name: 'district-data',
            path: 'district-data',
        },
        {
            component: () => import('@/pages/retrofit-elevator/requirement/map-list.vue'),
            meta: {
                title: '加装电梯地图',
                permission: ['看板-加梯地图'],
            },
            name: 'retrofit-elevator-map-list',
            path: 'map-list',
        },
        {
            component: () => import('@/pages/retrofit-elevator/BI-screen/index.vue'),
            meta: {
                title: 'BI大屏',
                permission: ['看板-大屏'],
            },
            name: 'retrofit-elevator-BI-screen',
            path: 'BI-screen',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        icon: 'i-gg:data',
        title: '看板',
        permission: ['看板-各区申请', '看板-加梯地图', '看板-大屏'],
    },
    name: 'board',
    path: 'board',
}

export default elevatorBoardRoute
